package com.situ.stl.service;

import com.github.pagehelper.PageInfo;
import com.situ.stl.entity.Member;

import java.util.List;

/** 
 * Service层 - 会员
 */
public interface MemberService{

    /** 
     * add
     */
    int add( Member member) throws Exception;

    /** 
     * remove
     */
    int remove( int id) throws Exception;

    /** 
     * edit
     */
    int edit( Member member) ;

    /** 
     * getById
     */
    Member getById( int id) ;

    /** 
     * get All
     */
    List<Member> getAll() ;

    /** 
     * search
     */
    List<Member> search( Member member) ;

    /** 
     * searchByPage
     */
    PageInfo searchByPage( Integer page, Integer limit, Member member) ;

}